Add hard error for Lowrance USR V3 files.
authorrobertl <robertl>
Mon, 5 Apr 2010 13:04:34 +0000 (13:04 +0000)
committerrobertl <robertl>
Mon, 5 Apr 2010 13:04:34 +0000 (13:04 +0000)
lowranceusr.c

index 9fc1a876616a14dd1c7e6c4ed4b8735ffd5b1513..90f2cf3621dbb0080a5b2a44831c770f04ccd110 100644 (file)
@@ -620,6 +620,10 @@ data_read(void)
        if (MajorVersion < 2) {
                fatal(MYNAME ": input file is from an old version of the USR file and is not supported\n");
        }
+       if (MajorVersion > 3) {
+               fatal(MYNAME ": input file version %d is not supported\n", 
+                       MajorVersion);
+       }
 
        NumWaypoints = gbfgetint16(file_in);